package com.cy.dao;

import com.cy.pojo.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NoticeDao {
    List<Notice> selectNotices(Notice notice);

    int insertNotice(Notice notice);

    int deleteNotices(Long... ids);

    int deleteNotice(Long id);

    int updateNotice(Notice notice);

    @Select("select * from sys_notices where id=#{id}")
    Notice selectById(Long id);
}
